@import "../global.less";
@import "../icon.less";
@import "../animate.less";
@import "../vr.less";
@import "../public.less";

body {
    width: 100%;
    height: 100%;
    // background: url(~@/assets/images/home.png) no-repeat left top;
    background-color: #000;

}

// home模块
.home {
    .dashboard-container {
        position: absolute;
        width: 100%;
        height: 100vh;
        z-index: 6;

        .dashboard-tips {
            width: 586px; //867px;
            height: 372px; //550px;
            background: url(~@/assets/images/tip.png) no-repeat center / cover;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 9;

            .btn {
                content: '';
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: 24px;
                width: 98px;
                height: 30px;
                border-radius: 100px; // 可无限大
                cursor: pointer;
                z-index: 10;
            }
        }
    }
}

// 上动画圆
.dashboard-circle-top {
    width: 400px;
    height: 400px;
    position: fixed;
    top: 0;
    left: 0;
}

// 下动画圆
.dashboard-circle-footer {
    width: 400px;
    height: 400px;
    position: fixed;
    bottom: 0;
    right: 0;

    &>.circle {
        position: absolute;
        bottom: 0;
        right: 0;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        overflow: hidden;

    }

}

// 动画圆圈
.circle {
    width: 200px;
    height: 200px;
    position: absolute;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    overflow: hidden;

    .circle0 {
        position: absolute;
        width: 400px;
        height: 400px;
        background: url(../../../images/Circle/T_Circle_2.png) no-repeat left top;
        background-size: contain;
        animation-name: rollingClockwise;
        animation-duration: 6s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    .circle1 {
        position: absolute;
        width: 400px;
        height: 400px;
        background: url(../../../images/Circle/T_Circle_3.png) no-repeat left top;
        background-size: contain;
        animation-name: rollingClockwise;
        animation-timing-function: linear;
        animation-duration: 4s;
        animation-iteration-count: infinite;
    }

    .circle2 {
        position: absolute;
        width: 400px;
        height: 400px;
        background: url(../../../images/Circle/T_Circle_4.png) no-repeat left top;
        background-size: contain;
        animation-name: rollingClockwise;
        animation-timing-function: linear;
        animation-duration: 4s;
        animation-iteration-count: infinite;
    }

    .circle3 {
        position: absolute;
        width: 400px;
        height: 400px;
        background: url(../../../images/Circle/T_Circle_5.png) no-repeat left top;
        background-size: contain;
        animation-name: rollingClockwise;
        animation-timing-function: linear;
        animation-duration: 8s;
        animation-iteration-count: infinite;
    }

    .circle4 {
        position: absolute;
        width: 400px;
        height: 400px;
        background: url(../../../images/Circle/T_Circle_0.png) no-repeat left top;
        background-size: contain;
    }

    .circle5 {
        position: absolute;
        width: 400px;
        height: 400px;
        background: url(../../../images/Circle/T_Circle_6.png) no-repeat left top;
        background-size: contain;
        animation-name: rollingClockwise;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }
}

// 顶部logo及时间天气
.dashboard-top {
    width: 100%;
    height: 50px;
    //border: 1px solid red;
    position: fixed;
    display: flex;
    justify-content: space-between;
    top: 15px;
    left: 0;
    z-index: -1;

    &.push-index {
        z-index: 5;
    }

    .top-logo {
        width: 300px;
        height: 50px;
        //border: 1px solid red;
        display: flex;
        align-items: center;

        .logo {
            //border: 1px solid red;
            width: 140px;
            height: 40px;
            background: url(~@/assets/images/logo.png) no-repeat left top;
            background-size: contain;
            margin-left: 50px;

            &::after {
                content: "";
                margin-left: 155px;
                padding-left: 155px;
                border-left: 1px solid white;
                height: 26px;
                display: inline-block;
                margin-top: 10px;
            }
        }

        .title {
            //border: 1px solid red;
            margin-left: 40px;
            color: white;
            font-size: 26px;
        }
    }

    .top-setting {
        width: 510px;
        height: 100%;
        //border: 1px solid red;
        display: flex;
        align-items: center;

        .item {
            color: white;
            font-size: 20px;
            cursor: pointer;
            // margin: 0 15px;
            margin-left: 15px;
            padding-right: 15px;
            border-right: 1px solid white;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;

            .weather {
                width: 25px;
                height: 25px;
                .weather-icon-sunny()
            }

            // .setting {}
        }

        .item:nth-child(4) {
            font-size: 24px;

            &>span {
                font-size: 16px;
                margin-right: 10px;
            }
        }

        .item:nth-child(5) {
            //background-color: yellow;
            // margin-left: 5;
            margin-top: 5px;
            border-right: 1px solid transparent;
        }
    }

    .top-weather {
        position: absolute;
        top: 50px;
        right: 50px;
        width: 373px;
        height: 210px;
        background-color: rgb(45, 53, 44);
        filter: Alpha(Opacity=20);
        opacity: 0.5;

        .weather {
            position: absolute;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            top: 0px;
            right: 0px;
            width: 373px;
            height: 210px;
            box-shadow: rgb(255, 255, 255) inset;
            background: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) left top,
                linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) left top,
                linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) right top,
                linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) right top,
                linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) left bottom,
                linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) left bottom,
                linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) right bottom,
                linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) right bottom;
            background-repeat: no-repeat;
            background-size: 1px 10px, 10px 1px;
        }
    }

    .top-item {
        position: absolute;
        top: 50px;
        right: 50px;
        width: 373px;
        height: 210px;
        background-color: transparent;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;


        .item {
            width: 300px;
            // height: 80px;
            //border: 1px solid red;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;

            .item-content-checked {
                display: flex;
                background-color: rgb(16, 32, 104);
                //border: 1px solid blueviolet;
                // flex-direction: row-reverse;
                width: 70px;
                height: 70px;
                justify-content: center;
                flex-wrap: wrap;
                align-content: center;

                &>span {
                    display: inline-block;
                    font-size: 16px;
                    height: 20px;

                }

                .item-icon {
                    width: 40px;
                    height: 40px;
                    font-family: 'iconfont';
                    font-style: normal;
                    background-size: contain;
                    display: block;
                }
            }

            .item-content {
                display: flex;
                width: 70px;
                height: 70px;
                justify-content: center;
                flex-wrap: wrap;
                align-content: center;

                &>span {
                    display: inline-block;
                    font-size: 16px;
                    height: 20px;
                }

                .item-icon {
                    width: 40px;
                    height: 40px;
                    font-family: 'iconfont';
                    font-style: normal;
                    background-size: contain;
                    display: block;
                    //border: 1px solid red;
                }
            }

            &>.item-title {
                display: flex;
                //border: 1px solid red;
                margin-top: 10px;
                width: 300px;
                height: 30px;
                font-size: 20px;

            }

            // .item-extra {}
        }

        .item:nth-child(2) {
            display: flex;
            flex-direction: column;
        }

        .item-line {
            width: 300px;
            height: 2px;
            background-color: rgb(255, 255, 255);

        }

        .item-line1 {
            margin-top: 0px;
            width: 300px;
            height: 2px;
            background-color: rgb(255, 255, 255);
        }
    }

    .top-setting-show {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgb(45, 53, 44);
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;

        .content {
            width: 500px;
            height: 500px;
            background-color: red;
        }

    }
}

// 导航栏
.nav {
    position: fixed;
    bottom: 40px;
    left: 30px;
    z-index: 5;

    .nav-ul {
        display: flex;
        list-style: none;
        flex-direction: row;

        .nav-li {
            margin-right: 30px;
            padding: 3px 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            color: rgb(225, 225, 225);
            cursor: pointer;

            &:hover {
                color: rgb(245, 245, 245);
            }
        }

        .nav-li-checked {
            margin-right: 30px;
            padding: 3px 10px;
            background: linear-gradient(#f1d117, #b18607) left top,
                linear-gradient(#c9bb71, #bb8640) left top,
                linear-gradient(#f1d117, #b18607) right top,
                linear-gradient(#c9bb71, #bb8640) right top,
                linear-gradient(#4bda8e, #68f773) left bottom,
                linear-gradient(#10a594, #2ed3bd) left bottom,
                linear-gradient(#4bda8e, #68f773) right bottom,
                linear-gradient(#10a594, #40e8ee) right bottom;
            background-repeat: no-repeat;
            background-size: 2px 15px, 8px 2px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            color: #fff;
            cursor: pointer;
        }
    }

}

// traffic模块
.traffic {
    height: 100vh;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 52px;
    z-index: 5;

    .el-carousel {
        position: relative;
        width: 380px;
        height: 400px;
        // border: 1px solid red;

        .pagination {
            position: absolute;
            display: flex;
            justify-content: space-between;
            align-items: center;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            z-index: 9;

            .dot {
                margin-right: 10px;
                width: 12px;
                height: 12px;
                background-color: #fff;
                border-radius: 50%;
                cursor: pointer;

                &.actived {
                    background-color: #ccc;
                }

                &:last-child {
                    margin-right: 0;
                }

            }
        }

        .el-carousel__item {
            display: flex;
            justify-content: space-between;
            align-items: space-between;
            flex-wrap: wrap;

            .monitor {
                width: 170px;
                height: 155px;

                .head {
                    height: 25px;

                    .head-bg {
                        width: 130px;
                        background: linear-gradient(225deg, transparent 6px, rgba(255, 255, 255, .3) 0);

                    }
                }

                .video {
                    position: relative;
                    height: calc(100% - 25px);
                    // background-color: red;
                    overflow: hidden;
                    // .video-player {
                    //   width: 100%;
                    //   height: 100%;
                    // }
                }
            }
        }
    }
}

// life模块
.life {
    height: 100vh;
    position: fixed;
    padding-top: 125px;
    top: 0;
    right: 20px;
    z-index: 5;

    .life-title {
        width: 280px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 35px;

        span {
            font-size: 24px;
            color: #fff;
        }

        .el-switch {
            margin-right: 20px;
            transform: scale(1.2);

            .el-switch__core:after {
                background-color: #faee6a;
            }

            &.closeColor {
                .el-switch__core:after {
                    background-color: #666;
                }
            }
        }
    }

    .life-content {
        position: relative;
        width: 280px;
        height: 390px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;

        .life-content-item {
            width: 100%;
            height: 80px;
            display: flex;
            cursor: pointer;
            .public-border();

            &::after {
                position: absolute;
                content: '';
                width: 100%;
                height: 80px;
                // background-color: rgba(255, 255, 255, .2);
                background: linear-gradient(to right, rgba(255, 255, 255, .3), transparent);
                z-index: -1;
            }

            .main {
                display: flex;
                flex: 1;
                flex-direction: column;
                justify-content: space-between;
                padding: 25px 20px 8px;

                .title {
                    span {
                        float: left;
                        color: #FFF;

                        &.title-dot {
                            margin-right: 20px;
                            width: 15px;
                            height: 15px;
                            border: 1px solid #ccc;
                            background-color: #fff;
                            border-radius: 50%;
                        }

                        &.title-self {
                            font-size: 16px;
                            transform: translateY(-4px);
                        }

                        &.title-value {
                            float: right;
                        }
                    }




                }

                .el-progress {
                    .el-progress-bar {
                        .el-progress-bar__outer {
                            border-radius: 0;

                            .el-progress-bar__inner {
                                border-radius: 0;
                            }
                        }
                    }
                }
            }
        }

        .life-content-item.active {
            cursor: pointer;

            &::after {
                position: absolute;
                content: '';
                width: 100%;
                height: 80px;
                background: transparent;
                z-index: -1;
            }
        }

    }
}

// greenmark模块
.greenmark {
    width: 250px;
    height: 1500px;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 0;
    right: 0;
    z-index: 5;

    .greenmark-rating-main {
        width: 250px;
        height: 50px;
        margin-top: 60px;
        //border: 1px solid red;
        //background-color: rgb(16, 32, 104);
        z-index: 5;
        display: flex;
        justify-content: flex-start;
        font-size: 18px;
        color: white;
        align-items: center;

        .greenmark-switch {
            margin-left: 10px;

            .el-switch__core::after {
                background-color: yellow;
            }

            &.closeColor {
                .el-switch__core::after {
                    background-color: #666;
                }
            }
        }

        // .el-switch {
        //   background-color: yellow;

        // }
    }

    .greenmark-rating-extra {
        //width: 500px;
        height: 680px;
        cursor: pointer;
        //border: 1px solid red;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        //justify-content: flex-start;


        .greenmark-rating::before {
            content: '';
            position: absolute;
            width: 250px;
            height: 150px;
            background-color: rgba(0, 0, 0, .1);

        }

        .greenmark-rating {
            width: 250px;
            //border: 1px solid rebeccapurple;
            height: 150px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-top: 10px;
            .public-border();

            .greenmark-icon-title {
                display: flex;
                width: 110px;
                //border: 1px solid red;
                flex-direction: column;
                justify-content: center;
                align-items: center;

                &>span {
                    margin-top: 5px;
                    margin-right: 15px;
                    color: white;
                }
            }

            .greenmark-el-progress {
                width: 105px;
                height: 100px;
                border-radius: 55px;
                border: 1px solid rgb(232, 219, 17);
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }

        .greenmark-rating-checked {
            width: 250px;
            //border: 1px solid rebeccapurple;
            height: 150px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-top: 10px;


            .greenmark-icon-title {
                display: flex;
                width: 110px;
                //border: 1px solid red;
                flex-direction: column;
                justify-content: center;
                align-items: center;

                &>span {
                    margin-top: 5px;
                    margin-right: 15px;
                    color: white;
                }
            }

            .greenmark-el-progress {
                width: 105px;
                height: 100px;
                border-radius: 55px;
                border: 1px solid rgb(232, 219, 17);
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }
    }
}

// flood模块
.flood {
    width: 490px;
    height: 650px;
    position: fixed;
    padding: 3px;
    top: 85px;
    right: 30px;
    z-index: 5;
    border: 1px solid #ccc;

    .flood-content {
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, .2);

        .flood-content-picture {
            width: 100%;
            height: 300px;
            background-color: #fff;
        }

        .flood-content-news {
            width: 100%;
            padding: 25px;

            h3 {
                font-size: 20px;
                text-shadow: 1px 1px #FFF;
                margin-bottom: 20px;
            }

            p {
                font-size: 18px;
            }
        }
    }
}